package com.example.demo;

import lombok.Data;

@Data
public class PageRequest {
    private int currentPage;
    private int pageSize;

    public int total;
    public int getTotal(){
        return (currentPage-1)*pageSize;
    }
}
